/*
 * @Author: cl
 * @Description:
 * @Date: 2023-04-21 10:01:15
 * @LastEditTime: 2023-09-26 00:43:14
 * @FilePath: \jsnode\nestjs\naota\src\user\dto\login-user.dto.ts
 * @LastEditors: chenli 604089679@qq.com
 */

import { IsNotEmpty, Length } from 'class-validator'

export class LoginUserDto {
  @IsNotEmpty({ message: '用户名不能为空' })
  @Length(3, 20)
  name: string


  @IsNotEmpty({ message: '密码不能为空' })
  @Length(6,100)
  password: string
}
